<div class="sc_form_body">
    <form action="{$view['id']?U('save'):U('add')}?spm={$spm}" id="form" class="layui-form layui-form-pane">
        <input type="hidden" name="id" value="{$view.id|default=''}" />
        <div class="layui-form-item">
            <label class="layui-form-label">上级节点</label>
            <div class="layui-input-block">
                <select name="pid">
                    <option value="0">顶级节点</option>
                    {volist name="list" id="data"}
                        <option value="{$data.id}" {eq name="data.id" value="$view.id"}disabled{/eq} {eq name="view.pid" value="$data.id"}selected{/eq}>{$data.delimiter|default=''}{$data['pid']?'├':''}{$data.title}</option>
                    {/volist}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label label-required">名称</label>
            <div class="layui-input-block">
                <input type="text" name="title" value="{$view.title|default=''}" placeholder="节点名称"  datatype="zh2-8" nullmsg="请输入名称!" errormsg="请使用2-8位中文!" class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label label-required">路径</label>
            <div class="layui-input-block">
                <input type="text" name="path" value="{$view.path|default=''}" placeholder="模块名/控制器/方法名" datatype="*" nullmsg="请输入路径!" class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">图标</label>
            <div class="layui-input-block">
                <input type="text" name="icon" value="{$view.icon|default=''}" placeholder="ICON图标" class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item" pane="">
            <label class="layui-form-label">权限管理</label>
            <div class="layui-input-block">
                <input type="checkbox" name="is_system" value="1" title="非超管不可见" lay-skin="primary" {eq name="view['is_system']|default=0" value="1"}checked{/eq} />
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn">保存</button>
            </div>
        </div>
    </form>
</div>
